function UploadForm() {

	this.getForm = function() {
		return this.form;
	};
	
	this.getFile = function() {
		return this.file;
	};
	
	this.getTitle = function() {
		return this.title;
	};
	
	this.getDescription = function() {
		return this.description;
	};
	
	this.getSubmit = function() {
		return this.submit;
	};
	
	this.reset = function() {
		this.file.value = "";
		this.title.value = "";
		this.description.value = "";
	};
	
	this.validate = function() {
		var file = this.getFile();
		var title = this.getTitle();
		var description = this.getDescription();
		
		var valid = (file.value != "") && (title.value != "") && (description.value != "");
		
		return valid;
	};
	
	this.form = document.createElement("form");
	this.form.enctype = "multipart/form-data";
	
	this.file = document.createElement("input");
	this.file.type = "file";
	this.file.name = "uploaded-file";
	this.file.id = "uploaded-file";
	this.file.className = "file";

	this.title = document.createElement("input");
	this.title.type = "text";
	this.title.id = "title";
	this.title.name = "title";
	this.title.className = "title";
	
	this.description = document.createElement("textarea");
	this.description.id = "description";
	this.description.name = "description";
	this.description.className = "description";
	
	this.submit = document.createElement("input");
	this.submit.type = "button";
	this.submit.value = Language.UploadFormView.upload;
}